package com.kehutong.payfees.entity.record;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import com.kehutong.payfees.enums.ChargeRecordRelType;

/**
 * 订单记录对外关联
 * type 用于扩展其他业务来源订单表
 */
@Table(value = "t_charge_record_rel", multi = true)
public class ChargeRecordRel extends Entity {

    private static final long serialVersionUID = -2378608698835360751L;

    protected ChargeRecordRel(String code) {
        super(code);
    }

    @Column(comment = "t_charge_record表id")
    private String chargeRecordId;

    @Column(comment = "外部关联Id")
    private String externalId;

    @Column(comment = "关联类型")
    private ChargeRecordRelType type;


    public String getChargeRecordId() {
        return chargeRecordId;
    }

    public void setChargeRecordId(String chargeRecordId) {
        this.chargeRecordId = chargeRecordId;
    }

    public String getExternalId() {
        return externalId;
    }

    public void setExternalId(String externalId) {
        this.externalId = externalId;
    }

    public ChargeRecordRelType getType() {
        return type;
    }

    public void setType(ChargeRecordRelType type) {
        this.type = type;
    }
}